# -*- coding: utf-8 -*-

<%inherit file="/layouts/content.html" />
<%def name="lhs()">
<div style="margin-bottom: 15px; margin-left:10px">
    <h1>${username}'s API</h1>
    % if not mykeys:
    <p>You have not register any api yet!<p>
    % else:
        % for key in mykeys:
        <p>${key}</p> 
        % endfor
    % endif
    % if available_keys:
    <p>You can register the following apis</p>
    % for available_key in available_keys:
        <a href="/api/${available_key}/auth">${available_key}</a> | 
    % endfor
    % endif
</div>
</%def>

<%def name="jquery_script()">
$("button#bt-api-register").click(function(){
    $("#fm-api-register").submit();
});
</%def>
